<div class="grid_16">
	<p>
		<label>Добавить нвость<small>Просто нажать кнопку "Go".</small>
		<a href="<?php Yii::app()->request->baseUrl; ?>/admin/qnews/add">
			<input type="button" value="Go!"/>
		</a>
		</label>
	</p>
</div>

<div class="grid_16">
	<table>
		<thead>
			<tr>
				<th>Заголовок</th>
				<th>Дата</th>
				<th>Текст</th>
				<th colspan="2" width="10%">Действие</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="5" class="pagination">
					<span class="active curved">1</span><a href="#" class="curved">2</a><a href="#" class="curved">3</a><a href="#" class="curved">4</a> ... <a href="#" class="curved">10 million</a>
				</td>
			</tr>
		</tfoot>
		<tbody>
			<?php
			foreach ($news as $key) {
			?>
				<tr>
					<td><?php echo $key->title; ?></td>
					<td><?php echo $key->date; ?></td>
					<td><?php echo mb_substr($key->text,0,55,"UTF-8"); ?>&nbsp;...</td>
					<td><?php echo '<a href="/admin/qnews/edit/id/' . $key->id_news . '" class="edit">Редактировать</a>'; ?></td>
					<td><?php echo '<a href="/admin/qnews/del/id/' . $key->id_news . '" class="delete">Удалить</a>'; ?></td>
				</tr>
<?php } ?>
		</tbody>
	</table>
</div>